<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商城首页</title>
</head>
<body>
<div>
    <form action="/index/" method="post">
        <input type="text" name="keyword" placeholder="搜索商品">
        <input type="submit" value="搜索">
    </form>
    <div>
        <span th:each="goodsClassify:${goodsClassifyList}">
            <a th:text="${goodsClassify.classifyName}" th:href="@{/index(classifyId=${goodsClassify.classifyId})}"></a>
        </span>
    </div>
    <div>
        <span th:each="goodsClassifySec:${goodsClassifySecList}">
            <a th:text="${goodsClassifySec.classifySecName}"
               th:href="@{/index(classifyId=${goodsClassifySec.classifyId},classifySecId=${goodsClassifySec.classifySecId})}"></a>
        </span>
    </div>
    <div th:each="goods:${goodsList}" style="border: black solid 1px">
        <a th:href="@{/goodsDetail(goodsId=${goods.goodsId})}">
            <div>
                <span th:text="${goods.sellerId}"/>
                <span th:text="${goods.goodsName}"/>
                <span th:text="${goods.goodsPrice}"/>
                <span th:text="${goods.goodsSellNumber}"/>
                <span th:text="${goods.goodsIntroduce}"/>
                <img th:src="${goods.goodsPicture}" width="200" height="250"/>
            </div>
        </a>
    </div>
</div>
</body>
</html>